package org.arnetminer.personalized.vo;

import java.text.Format;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.arnetminer.personalized.util.Global;



/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class Comment  implements java.io.Serializable {


    // Fields    
	private long id;
    private String comment;
    private String postDate;
    private User user;
    private Status status;
     


    // Constructors

    /** default constructor */
    public Comment() {
    	
    	postDate = Global.FORMATTER.format(new Date());
    }

    
    /** full constructor */
    public Comment(String comment, User user, Status status) {
    	this.comment = comment;
    	Format formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    	postDate = Global.FORMATTER.format(new Date());
    	this.user = user;
    	this.status = status;
    }

    // Property accessors

	


	public String getComment() {
		return comment;
	}


	public long getId() {
		return id;
	}


	public void setId(long id) {
		this.id = id;
	}


	public void setComment(String comment) {
		this.comment = comment;
	}



	public String getPostDate() {
		return postDate;
	}


	public void setPostDate(String postDate) {
		this.postDate = postDate;
	}


	public User getUser() {
		return user;
	}


	public void setUser(User user) {
		this.user = user;
	}


	public Status getStatus() {
		return status;
	}


	public void setStatus(Status status) {
		this.status = status;
	}
	
	
    
}